home *** CD-ROM | disk | FTP | other *** search
/ Scene 96 / Scene 96 International Edition (Zyklop Software) (Disc 2) (1997).iso / misc / coding / cp2dekit / h / player.h < prev    next >
Encoding:
C/C++ Source or Header  |  1996-12-29  |  1.3 KB  |  43 lines

  1. //***************************************************************************
  2. //
  3. // this file is (c) '94-'96 Niklas Beisert
  4. //
  5. // this file is part of the cubic player development kit.
  6. // you may only use/modify/spread this file under the terms stated
  7. // in the cubic player development kit accompanying documentation.
  8. //
  9. //***************************************************************************
  10.  
  11. #ifndef __PLAYER_H
  12. #define __PLAYER_H
  13.  
  14. #define PLR_STEREO 1
  15. #define PLR_16BIT 2
  16. #define PLR_SIGNEDOUT 4
  17. #define PLR_REVERSESTEREO 8
  18.  
  19. extern int plrRate;
  20. extern int plrOpt;
  21. extern int plrBufSize;
  22. extern int (*plrPlay)(void *&buf, int &len);
  23. extern void (*plrStop)();
  24. extern void (*plrSetOptions)(int rate, int opt);
  25. extern int (*plrGetBufPos)();
  26. extern int (*plrGetPlayPos)();
  27. extern void (*plrAdvanceTo)(int pos);
  28. extern long (*plrGetTimer)();
  29.  
  30. int plrOpenPlayer(void *&buf, int &len);
  31. void plrClosePlayer();
  32. void plrGetRealMasterVolume(int &l, int &r);
  33. void plrGetMasterSample(short *s, int len, int rate, int opt);
  34.  
  35. extern void (*plrIdle)();
  36.  
  37. extern "C" void plr16to8(unsigned char *, const unsigned short *, unsigned long);
  38. #pragma aux plr16to8 parm [edi] [esi] [ecx] modify [eax]
  39. extern "C" void plrClearBuf(void *buf, int len, int unsign);
  40. #pragma aux plrClearBuf parm [edi] [ecx] [eax]
  41.  
  42. #endif
  43.